/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.TX;

import entity.PurchasedItem;
import java.util.Calendar;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Randall Chia
 */
@Remote
public interface TransactionManagerSBRemote {


        public void createTransactionEntry(
            Calendar time_stamp,
            String customerEmail,
            Integer loyaltyPointsAwarded,
            Double subtotal,
            List<PurchasedItem> items
            );

    public entity.PurchasedItem createPurchasedItem_Regular(java.util.Calendar time_stamp, 
    java.lang.String customerEmail, java.lang.String seller, java.lang.String item_name, 
    java.lang.Long item_id, java.lang.Double item_total_price, java.lang.String buyer_country, 
    java.lang.Integer buyer_age, java.lang.Long outlet_id);

    public entity.PurchasedItem createPurchasedItem_GroupOn(java.lang.Long id, 
            java.util.Calendar time_stamp, java.lang.String customerEmail, 
            java.lang.String seller, java.lang.String creditCard, java.lang.Long customerId, 
            java.lang.Integer qty, java.lang.Double subtotal);

}
